package com.easy.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.*;

import java.math.BigDecimal;
import java.util.List;

@Getter
@Setter
@ToString
@EqualsAndHashCode
@NoArgsConstructor
public class Orders {
    private Integer id;//主键
    private Integer userid;//所属用户
    private String ordernumber;//订单号
    private String createddate;//创建 时间
    private Integer status;//状态
    @TableLogic(value = "0", delval = "1")
    private Integer isdel;//是否删除(用户是否可见)
    private BigDecimal totalprice;//总金额
    private String paymentmethod;//支付方式
    private String shiptime;//发货时间
    private String paytime;//支付时间
    private String harvesttime;//收货时间
    private String finishtime;//完结时间
    @TableField(exist = false)
    List<OrdersDetails> details;
    @TableField(exist = false)
    Address addr;
    private String orderimg;//订单默认图片

}
